<?php
class Admin_IndexController extends Zendvn_Controller_Action
{
	public function init()
	{
		
		$template_path=TEMPLATE_PATH."/admin/system";
		$this->loadTemplate($template_path);
		
	
		
	}
	public function indexAction() {
		
	   // echo $this->init();
		$a=$this->view->cmsEditor('content','','100%',500);
		
		echo $a;
		//$form->addDecorator()->h
		//echo $form->render('phuong');
		
	
		
	
		
	}
	

	public function preDispatch() {
		
	    $auth = Zend_Auth::getInstance();
	    //kiem tra xem tai khoan da chung thuc hay chua
	    if (!$auth->hasIdentity()) {
	        if ($this->_request->getActionName() != 'login') {
	            $this->_redirect('/admin/user/login');
	          
	        }
	    }

	}	

	


}